package com.sservice.model.dao;

import com.sservice.model.entity.ClienteleAccount;
import com.sservice.model.vo.ClienteleAccountVo;

import java.util.List;

public interface ClienteleAccountMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ClienteleAccount record);

    int insertSelective(ClienteleAccount record);

    ClienteleAccount selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ClienteleAccount record);

    /**
     * 根据客户ID查询客户账户
     *
     * @param clienteleId
     * @return
     */
    ClienteleAccount selectClientAccountByClientele(String clienteleId);

    int updateByPrimaryKey(ClienteleAccount record);

    /**
     * 按条件统计
     *
     * @param record
     * @return
     */
    int queryByCount(ClienteleAccountVo record);

    /**
     * 分页查询
     *
     * @param record
     * @return
     */
    List<ClienteleAccountVo> queryByPage(ClienteleAccountVo record);
}